package com.zsc.wxapp.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

@Mapper
public interface CollectedDateMapper {

    /**
     * 插入每日用户上传户数数据
     * @param times
     * @param now
     */
    @Insert("insert into collected_date (collected_date_num, create_time)" +
            "value (#{times}, #{now})")
    void insert(Integer times, LocalDate now);

    /**
     * 根据时间获取用户上传数据
     * @return
     */
    List<Integer> getDataByTime();
}
